import 'dotenv/config';
import os from 'os';
import path from 'path';

export const SECRET = process.env.SECRET || '';
export const CLIENT_ID = process.env.CLIENT_ID || '';
export const CPU_NUM = 2;
// export const CPU_NUM = os.cpus().length;
export const CWD = process.cwd();
export const PUBLIC_PATH = path.join(CWD, 'public');
export const TMP_PATH = path.join(PUBLIC_PATH, 'tmp');

export const PAYPAL_CLIENT_ID = process.env.PAYPAL_CLIENT_ID || '';
export const PAYPAL_CLIENT_SECRET = process.env.PAYPAL_CLIENT_SECRET || '';